use crate::dto::base_dto::BizDto;

/// 运行时task
#[derive(Debug)]
pub struct BizTask {
    pub(crate) biz_code: u32,
    pub data: String,
    pub level: u8,
    pub order: u32,
    pub msg_id: String,
}

impl BizTask {
    pub fn is_high_level(&self) -> bool {
        self.level == 1
    }
}

#[derive(Default)]
pub struct BatchTaskInfo {
    pub msg_id: String,
    pub task_list: Option<Vec<BizDto>>,
}
